package com.dianning.web.action.house;

import java.util.List;

import org.apache.commons.logging.*;

import com.dianning.bean.Area;
import com.dianning.bean.Channel;
import com.dianning.bean.ChannelContact;
import com.dianning.bean.Info;
import com.dianning.bean.Visitor;
import com.dianning.comm.ChannelConfig;
import com.dianning.service.AreaService;
import com.dianning.service.ChannelService;
import com.dianning.service.InfoService;
import com.dianning.service.VisitorService;
import com.dianning.web.action.BaseAction;

public class Index extends BaseAction{

	private static final Log logger = LogFactory.getLog(Index.class);

	private AreaService areaService;

	public AreaService getAreaService() {
		return areaService;
	}

	public void setAreaService(AreaService areaService) {
		this.areaService = areaService;
	}
	
	private long bid = ChannelConfig.HOUSE_ID;
	private long minPrice = -1;
	private long maxPrice = -1;
	private long mianji = -1;
	private long maxMianji = -1;
	private long areaId = -1;
	private long allTop = 1;
	
	
	private List areas; 

	public long getBid() {
		return bid;
	}

	public void setBid(long bid) {
		this.bid = bid;
	}
	
	public List getAreas() {
		return areas;
	}

	public void setAreas(List areas) {
		this.areas = areas;
	}
	
	public String execute() {
		try {
			return this.executeMethod(this.getAction());
		} catch (Exception e) {
			logger.error(e);
			return ERROR;
		}
	}
	
	public String index(){
		this.setAreas(this.getAreaService().findAreas("orders", 0));
		return SUCCESS;
	}

}
